package com.google.gwt.sample.dynatablerf.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.sample.dynatablerf.shared.ProjetoProxy;

public class CloseMaterialListEvent extends
		GwtEvent<CloseMaterialListEventHandler> {

	public static Type<CloseMaterialListEventHandler> TYPE = new Type<CloseMaterialListEventHandler>();
	
	private ProjetoProxy projetoProxy;

	public CloseMaterialListEvent(ProjetoProxy projetoProxy) {
		super();
		this.projetoProxy = projetoProxy; 
	}

	@Override
	protected void dispatch(CloseMaterialListEventHandler handler) {

		handler.onCloseMaterialList(this);
	}

	@Override
	public Type<CloseMaterialListEventHandler> getAssociatedType() {

		return TYPE;
	}

	public ProjetoProxy getProjetoProxy() {
		return projetoProxy;
	}

	public void setProjetoProxy(ProjetoProxy projetoProxy) {
		this.projetoProxy = projetoProxy;
	}
}
